<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\AuthRule */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="col-sm-8 col-sm-offset-2">
	<?php $form = ActiveForm::begin(); ?>
		<div class="box <?= $model->isNewRecord ? 'box-success' : 'box-primary' ?>">
			<div class="box-body">
				<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

				<?= $form->field($model, 'className')->textInput(['maxlength' => true]) ?>
			</div>
			<div class="box-footer">
				<?= Html::submitButton($model->isNewRecord ? '新建' : '更新', [
						'class' => ($model->isNewRecord ? 'btn btn-success' : 'btn btn-primary') . ' pull-right']) ?>
			</div>
		</div>
	<?php ActiveForm::end(); ?>
</div>

